package oop.basicConcept;

public class WuMingFen {
    String theMa;
    int quantity;
    boolean likeSoup;

    public WuMingFen(){
        this.theMa = "酸辣面码";
        this.quantity = 2;
        this.likeSoup = true;
    }

    public WuMingFen(String theMa,int quantity){
        this.theMa = theMa;
        this.quantity = quantity;
    }

    public WuMingFen(String theMa,int quantity,boolean likeSoup){
        this.theMa = theMa;
        this.quantity = quantity;
        this.likeSoup = likeSoup;
    }

    public void check(){
        System.out.println("面码:"+this.theMa+
                ",分量:"+this.quantity+",是否带汤:"+this.likeSoup);
    }

    public static void main(String[] args) {
        WuMingFen wuMingFen = new WuMingFen();

        wuMingFen.check();

        WuMingFen wuMingFen1 = new WuMingFen("牛肉",5);
        wuMingFen1.check();
        WuMingFen wuMingFen2 = new WuMingFen("羊肉",2,false);
        wuMingFen2.check();


    }
}
